/*var app=angualr.module('App',[]);
    app.run(function($rootScope, $timeout) {
        $rootScope.isDisabled = true;
        $timeout(function() {
            $rootScope.isDisabled = false;
        }, 5000);
    });*/
/*
angular.module('myApp', [])
    .run(function($rootScope, $timeout) {
        $timeout(function() {
            $rootScope.myHref = 'http://google.com';
        }, 2000);
    });*/
/*
angular.module('myApp', [])
    .run(function($rootScope, $timeout) {
        $timeout(function() {
            $rootScope.imgSrc = 'https://www.baidu.com';
        }, 2000);
    });*/

/*
angular.module('myApp', [])
    .run(function($rootScope) {
        $rootScope.someProperty = 'hello computer';
        $rootScope.someAction = function() {
            $rootScope.someProperty = 'hello human';

        };
    });
*/
/*
ngular.module('myApp',[])
    .controller('EquationController',function($scope) {
        $scope.equation = {};
        $scope.change = function() {
            $scope.equation.output
                = parseInt($scope.equation.x) + 2;
        };
    });*/
/*
angular.module('myApp',[])
    .controller('CounterController', function($scope) {
        $scope.decrement = function() {
            $scope.count = $scope.count - 1;
        };
    })*/

/*angular.module('myApp',[])
    .controller('CityController',function($scope) {
        $scope.cities = [
            {name: 'Seattle'},
            {name: 'San Francisco'},
            {name: 'Chicago'},
            {name: 'New York'},
            {name: 'Boston'}
        ];
    });*/
angular.module('myApp',[])
    .controller('FormController',function($scope) {
        $scope.person = {
            name: null
        };
        $scope.people = [];
        $scope.submit = function() {
            if ($scope.person.name) {
                $scope.people.push({name: $scope.person.name});
                $scope.person.name = '';
            }
        };
    });

